package com.nmsl.system.controller;

import com.nmsl.system.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @
*/
@CrossOrigin
@RestController
@RequestMapping("/logo")
public class LogoController {
    @Autowired
    private RedisTemplate<String, String> redisTemplate;
    @RequestMapping("/getLogo")
    // 定义一个名为getLogo的方法，用于获取logoUrl
    public R getLogo(){
        // 从redisTemplate中获取logoUrl
        return R.ok( redisTemplate.opsForValue().get("logoUrl"));
        // 返回一个包含logoUrl的R对象
    }

}
